package com.threeti.mecool.legacy.domain.model.basicdata;

import java.util.Collection;
import java.util.Collections;
import java.util.LinkedHashSet;
import java.util.Set;

public class MDCustomer {
    private String code;
    private String name;
    private Set<MDCategory> categories = new LinkedHashSet<MDCategory>();

    public MDCustomer(String code, String name) {
        this.code = code;
        this.name = name;
    }

    void addCategory(MDCategory category) {
        categories.add(category);
    }

    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public Collection<MDCategory> getCategories() {
        return Collections.unmodifiableCollection(categories);
    }
}
